<template>
  <button @click.left="show('点击了鼠标左键')">左键按钮</button>
  <button @click.right.prevent="show('点击了鼠标右键', $event)">右键按钮</button>
</template>

<script setup>
    const show = (message ,event) => {
        console.log(message)
        console.log(event);
    }
</script>

<style>

</style>